# 存放被测试项目基本信息，如url地址等

# 导包
import os
import json

# 设置项目环境域名
BASE_URL = "http://kdtx-test.itheima.net"

# 获取项目根路径
BASE_PATH = os.path.dirname(__file__)
print(BASE_PATH)

# test_data = []
# with open(BASE_PATH + "/data/login.json", "r", encoding='utf-8') as f:
#     # 加载json测试数据
#     json_data = json.load(f)
#     print(type(json_data))
#     # 循环遍历测试数据
#     for case_data in json_data:
#         print("----------------开始打印------------------")
#         print(case_data)
#         print(type(case_data))
#         # 转换数据格式[{},{}] ==> [(),()]
#         username = case_data.get("username")
#         password = case_data.get("password")
#         status = case_data.get("status")
#         msg = case_data.get("msg")
#         code = case_data.get("code")
#         test_data.append((username, password, status, msg, code))
#
# print(test_data)
